
//#include <cliext/hash_map>
#include <cliext/map>
#include <cliext/vector>
#include "MakeString.h"
//using namespace std;
//using namespace System::Windows::Forms;
using namespace System::Timers;
using namespace System;



//typedef cliext::hash_map<TimerType , long> TimeLimit;
//typedef cliext::hash_map<long , long> TimeLimit;
//typedef cliext::map<long ,long > TimeLimits;
public ref class TimerTomato
{
	public:
		static TimerTomato^ instance();
		~TimerTomato(void);
		TimerTomato(TimerTomato^ tom);
		/**
		bool startAll();
		bool stopAll();
		*/
		bool setVectorLabel(cliext::vector<System::Windows::Forms::Label^ > up1);
		bool setVectorButton(cliext::vector<System::Windows::Forms::Button^ > bt1);
		
		

	protected:

	private:
		cliext::vector<System::Windows::Forms::Label^ > up;
		cliext::vector<System::Windows::Forms::Button^> bt;
		bool setvalue(long l);
		cliext::map<long ,long > tl;
		static long count = 0;
		static TimerType current;
		Timer^ time;
		static TimerTomato^  tt;
		TimerTomato(void);
		static void OnTimedEvent( Object^ source, ElapsedEventArgs^ e );
};
